package com.my.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 林允
 * @version 1.0
 * @description: TODO
 * @date 2023/5/22 16:08
 */
@Controller
public class UserController {

    @RequestMapping("/hello")
    @ResponseBody
    public String test(Integer id, @RequestBody String request){
        System.out.println("id = " + id);
        System.out.println("request = " + request);
        return "hello,world";
    }

}
